package com.dtsz.m2.ui.adapter;

import android.content.Context;

import com.dtsz.m2.R;
import com.dtsz.m2.refresh.baseadapter.CommonAdapter;
import com.dtsz.m2.refresh.baseadapter.ViewHolder;
import com.dtsz.m2.ui.model.Notice;

import java.util.List;

public class NoticeAdatper extends CommonAdapter<Notice> {
    public NoticeAdatper(Context context, List<Notice> data, int layoutItemId) {
        super(context, layoutItemId, data);
    }

    @Override
    protected void convert(ViewHolder holder, Notice notice, int position) {
        holder.setText(R.id.tv_title, notice.getNotTitle());
        holder.setText(R.id.tv_content, notice.getNotContent());
        holder.setText(R.id.tv_time, notice.getCreateTimeStr());
    }
}
